<%--
  Created by IntelliJ IDEA.
  User: qiliping
  Date: 15/12/16
  Time: 下午5:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>


<html>
<head>
    <title>编辑后台用户</title>
</head>
<body>
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title">
            后台用户管理
            <small>编辑后台用户</small>
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="${ctx}/main">
                    首页
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="${ctx}/sys/user_list">
                    后台用户管理
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">
                    编辑后台用户
                </a>
            </li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB-->
    </div>
</div>
<div class="main">

    <div class="row">
        <div class="col-md-12">
            <form:form modelAttribute="SysUserAddModel" method="post" class="form-horizontal">
                <div class="form-body">
                    <div class="form-group">
                        <label class="control-label col-md-3">工号：</label>
                        <div class="col-md-4">
                            <form:input path="jobNo" cssClass="form-control" placeholder=""></form:input>
                        </div>
                        <form:errors path="jobNo" cssClass="field-validation-error" element="div"></form:errors>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-3">真实姓名：</label>
                        <div class="col-md-4">
                            <form:input path="trueName" cssClass="form-control" placeholder=""></form:input>
                        </div>
                        <form:errors path="trueName" cssClass="field-validation-error" element="div"></form:errors>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-3">登录用户名：</label>
                        <div class="col-md-4">
                            <form:input path="userName" cssClass="form-control" placeholder=""></form:input>
                        </div>
                        <form:errors path="userName" cssClass="field-validation-error" element="div"></form:errors>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-3">登录密码：</label>
                        <div class="col-md-4">
                            <form:password path="password" cssClass="form-control" placeholder=""></form:password>
                        </div>
                        <form:errors path="password" cssClass="field-validation-error" element="div"></form:errors>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-3">邮箱：</label>
                        <div class="col-md-4">
                            <form:input path="email" cssClass="form-control" placeholder=""></form:input>
                        </div>
                        <form:errors path="email" cssClass="field-validation-error" element="div"></form:errors>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-3">部门：</label>
                        <div class="col-md-4">
                            <form:input path="department" cssClass="form-control" placeholder=""></form:input>
                        </div>
                        <form:errors path="department" cssClass="field-validation-error" element="div"></form:errors>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-3">手机号：</label>
                        <div class="col-md-4">
                            <form:input path="phone" cssClass="form-control" placeholder=""></form:input>
                        </div>
                        <form:errors path="phone" cssClass="field-validation-error" element="div"></form:errors>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-md-3">用户角色：</label>
                        <div class="col-md-9 col-md-offset-3 js-checkList">
                            <form:errors path="roleIds" cssClass="field-validation-error" element="div"></form:errors>
                            <div class="checkbox-list checklist-boxer">
                                <c:forEach var="item" items="${roleList}">
                                <label class="checkbox-inline">
                                    <form:checkbox path="roleIds"  value="${item.sysRoleId}" class="checkers"></form:checkbox>
                                    ${item.roleName}</label>
                                </c:forEach>
                            </div>
                        </div>

                    </div>


                    <div class="form-group">
                        <div class="col-md-9 col-md-offset-3 ">
                            <input type="submit" value="提交" class="btn green"/>
                            <a href="${ctx}/sys/role_list" class="btn btn-default">取消</a>
                        </div>
                    </div>
                </div>

            </form:form>
        </div>
    </div>



</div>
</body>
</html>
